function sendmail(data){
    return $axios({
        'url': '/user/sendmail',
        'method': 'post',
        data
    })
}

function loginApi(data) {
    return $axios({
      'url': '/user/login',
      'method': 'post',
      data
    })
}

const loginregister = (params) => {
    return $axios({
        url: '/register',
        method: 'post',
        data: { ...params }
    })
}